from PIL import ImageDraw, ImageFont
import pyautogui as pag
import io


ttf = ImageFont.truetype('arial.ttf',50)
def get_frame():
	global ttf
	pos = pag.position()
	ss = pag.screenshot()
	draw = ImageDraw.Draw(ss)
	draw.text((pos.x-14, pos.y-30),'+',font=ttf,fill = (255,0,0))
	tube = io.BytesIO()
	ss.save(tube,format='JPEG')
	# ss.save(tube,format='JPEG',quality=50)
	img_bytes = tube.getvalue()
	return img_bytes
















